package questionmanager;

import gui.GUIMain;

import java.awt.BorderLayout;
import java.awt.Dimension;

import javax.swing.JFrame;

public class GUIQuestionManager extends GUIMain {

	private static final long serialVersionUID = 1L;
	private GUIQuestionManagerLeft left;
	private GUIQuestionManagerRight right;
	public GUIQuestionManager(JFrame cur, JFrame ex, GUIMain exGUI, int cornerIndex) {
		super(cur, cornerIndex);
		this.setTitle("QUẢN LÝ CÂU HỎI");
		this.exitButton.setAction(new stuff.DisposeAction(cur,ex, exGUI));
		this.bottomPanel.setLayout(new BorderLayout());
		this.bottomPanel.setOpaque(false);
		left = new GUIQuestionManagerLeft(this);
		left.setPreferredSize(new Dimension(220, 0));
		right = new GUIQuestionManagerRight(this);
		
		this.bottomPanel.add(left,BorderLayout.WEST);
		this.bottomPanel.add(right,BorderLayout.CENTER);
	}
	
	public GUIQuestionManagerRight getRightPanel(){
		return right;
	}
	
	public GUIQuestionManagerLeft getLeftPanel(){
		return left;
	}
	
}